using System;
using System.Windows.Forms;
using System.Collections;

namespace Curriculum.UI.Helper
{
	/// <summary>
	/// Summary description for ListHelper.
	/// </summary>
	public class ListHelper
	{
		
		public static void FillListControl(ListControl ctrl, IList datasource)
		{
			ctrl.DataSource = datasource;
		}
		public static void FillListControl(ListControl ctrl, ArrayList datasource,string propiedad,string textField)
		{			
			ctrl.DisplayMember = propiedad;
			ctrl.ValueMember = textField;
			ctrl.DataSource = datasource;
		}
	}
}
